package com.aitoedu.server.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Accessors(chain = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class StuCourseVO {

    @Schema(description = "课程id")
    private Long courseId;

    @Schema(description = "课程名")
    private String courseName;

    @Schema(description = "教师名")
    private String tName;

    @Schema(description = "课程码")
    private Integer code;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy.M.d",timezone = "GMT+8")
    private LocalDateTime joinTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
